/** pseudo random id */
export const RndId = () => Math.random().toString(36).slice(2);

export const RndInt = R.curry(
  /**
   * return an integer x, min <= x < max
   * @param {number} min
   * @param {number} max
   * @returns {number}
   */
  (min, max) => R.compose( R.add(min), Math.floor, R.multiply(max - min) )(Math.random())
);
